﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class Tailor_Report : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            makeInvisibleAllLink();
            txtFromDate.Text = DateTime.Today.ToString("dd MMM yyyy");
            txtToDate.Text = DateTime.Today.ToString("dd MMM yyyy");
        }
    }
    protected void btnDateRangeReport_Click(object sender, EventArgs e)
    {
        makeInvisibleAllLink();
        hlnkDateRangeReport.Visible = true;
        hlnkDateRangeReport.NavigateUrl = "Report_DateWiseOrders.aspx?FromDate="+txtFromDate.Text+"&ToDate="+txtToDate.Text;
    }

    private void makeInvisibleAllLink()
    {
        hlnkDateRangeReport.Visible = false;
    }
}